package com.renli.model.dto;

import com.renli.model.domain.Staff;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;


@Data
public class StaffDto implements Serializable {
    // @NotEmpty(message = "id不能为空")
    private Long id;
    @NotEmpty(message = "名字不能为空")
    private String name;
    @NotEmpty(message = "性别不能为空")
    private String sex;
    private String schoolRecord;
    private String email;
    private String addr;
    private String politicalOutlook;
    @NotEmpty(message = "电话不能为空")
    @Size(message = "请输入正确的手机号码", min = 11, max = 11)
    private String phone;
    private String graduateSchool;
    private String department;
    private LocalDateTime contractBegin;
    @NotEmpty(message = "职位不能为空")
    private String position;
    private LocalDateTime contractEnd;
    private LocalDateTime probationTime;
    private LocalDateTime entryTime;
    private String employmentForm;
    private Double basicWage;
    private Double postPay;


}
